Monday, September 26, 2022

 Heading Tag in HTML?


  • HTML heading tags are used to give title and sub heading to an article.
  • There are six different types of heading tags, with h1 having the largest font size and h6 having the smallest.
  • HTML paragraph elements are used to create paragraphs on a website and can also function as a line break.

  1. The <h1>, <h2>, <h3>, <h4>, <h5>, and <h6> elements are used to create headings in descending order of importance where <h1> is the most important and <h6> the least.
<!DOCTYPE HTML>
<html>
<head>
<title>HEADING TAG</title>
</head>
<body>
<h1>Header Level 1</h1>
<h2>Header Level 1</h2>
<h3>Header Level 1</h3>
<h4>Header Level 1</h4>
<h5>Header Level 1</h5>
<h6>Header Level 1</h6>
</body>
</html>

No comments:

Post a Comment

  Heading Tag in HTML? HTML heading tags are used to give title and sub heading to an article. There are six different types of heading tags...